package com.myway.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/en")
public class PageControllerEn {

    @RequestMapping("")
    public String showIndex(){
        return "en/main";
    }

    @RequestMapping("/{page}")
    public String showPage(@PathVariable("page") String page){
        return "en/"+page;
    }
}
